package Formularios;

import java.awt.Dimension;
import java.awt.Graphics;

import javax.swing.Icon;
import javax.swing.ImageIcon;
import javax.swing.JButton;

public class jpFondo extends javax.swing.JPanel {
	
	JButton btnIngresar;
	public jpFondo()
	{
		//initComponents();
		this.setSize(100,100);
		btnIngresar = new JButton();
	}
	
	public void paintComponents(Graphics g)
	{
		System.out.println("entro al jdFOndo");
		Dimension tamanio = getSize();
		ImageIcon imagenFondo = new ImageIcon(getClass().getResource("login2.png"));
		g.drawImage(imagenFondo.getImage(), 0, 0, tamanio.width, tamanio.height, null);
		setOpaque(false);
		super.paintComponents(g);
	}

}
